<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Title</title>
</head>
<body>
{#<a href="{% url 'myapp:myapp_add' %}">添加</a>#}
<ul>
    {% for i in data %}
        <li>
        {{ i.id }}
        {{ i.name }}
        {% if i.sex == 1 %}
            男
        {% else %}
            女
        {% endif %}
        {{ i.class_id.name }}
{#            <a href="/myapp/del/{{i.id}}">删除</a>#}
{#            <a href="/myapp/updatestu/{{i.id}}">修改</a>#}
        </li>
    {% endfor %}
</ul>
</body>
</html>